package com.cn.jinl.dao;

import com.cn.jinl.domain.Material;
import com.cn.jinl.domain.MaterialExample;
import java.util.List;

import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

public interface MaterialMapper {
    int countByExample(MaterialExample example);

    int deleteByExample(MaterialExample example);

    int deleteByPrimaryKey(String id);

    int insert(Material record);

    int insertSelective(Material record);

    List<Material> selectByExample(MaterialExample example);

    List<Material> selectMaterialWithItemName();

    Material selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Material record, @Param("example") MaterialExample example);

    int updateByExample(@Param("record") Material record, @Param("example") MaterialExample example);

    int updateByPrimaryKeySelective(Material record);

    int updateByPrimaryKey(Material record);

    int batchInsertMaterials(@Param("materials") List<Material> materials);

    List<Material> selectMaterialList(QueryForm queryForm);

    List<Material> selectAllMaterialList();
}